<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php if (!empty($this->htitle)){echo $this->htitle . ' - ';}?><?php echo $this->cfg['title'];?></title>
</head>

<script language="javascript">
var baseUrl = "<?php echo $this->baseUrl;?>";
</script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/js/jquery.pack.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/js/bet.js"></script>
<body>
<a href="<?php echo $this->url($this->baseUrl, "index", "index");?>" target="_blank">flash 轮盘</a><br />
<a href="<?php echo $this->url($this->baseUrl, "admincp", "login", "", "admin");?>" target="_blank">后台管理</a>
<?php echo <<<EOT
<p>当前用户 用户ID：{$this->userinfo['uid']} 用户名：{$this->userinfo['username']} 金钱：
  <label for="cash"></label>
  <input name="cash" type="text" id="cash" size="15" value="{$this->userinfo['cash']}" />
  <input type="submit" name="setcash" id="setcash" value="修改" />
</p>
<p>小彩池：
  <input name="min" type="text" id="min" size="15" value="{$this->min}" />
  <input type="submit" name="setmin" id="setmin" value="修改" />
大彩池：
<input name="max" type="text" id="max" size="15" value="{$this->max}"  />
<input type="submit" name="setmax" id="setmax" value="修改" />
</p>
EOT;
?>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>押注(输入对应押注值)：<br />
<?php 
$arr_beilv = array("袁绍", "孙权", "大乔", "夏侯惇", "曹操", "关羽", "张飞", "特殊");
foreach ($arr_beilv as $index => $v){
	echo <<<EOT
  <label for="beilv_{$index}">{$v}</label>  
  <input type="text" name="bet_{$index}" value="" id="bet_{$index}" size=10/>
EOT;
if ($index == 3)
echo "<br />";
}
?>
</p>
<p>
投注次数(最高100次)：
<input name="times" type="text" id="times" size="15" value="1" />
</p>
<p>
  <input type="submit" name="btn_bet" id="btn_bet" value="投注" />
</p>
<p>投注结果：<p id="bet_result"></p></p>
</body>
</html>
